package com.superhelper.common.domain;

public enum POIStatus {
    ONLINE, OFFLINE, UPLINE, DOWNLINE, UNKOWN;

    // 121-营业；120-休息；18-上线；19-下线
    public static POIStatus mt(int mtStatus) {
        switch (mtStatus) {
        case 121:
            return ONLINE;
        case 120:
            return OFFLINE;
        case 18:
            return UPLINE;
        case 19:
            return DOWNLINE;
        default:
            return UNKOWN;
        }
    }

    // 1,正常营业 3，休息中 9，暂停营业
    public static POIStatus bd(String status) {
        switch (status) {
        case "1":
            return ONLINE;
        case "3":
            return OFFLINE;
        case "9":
            return DOWNLINE;
        default:
            return UNKOWN;
        }
    }
}
